<!DOCTYPE html>
<html>
<#include "../../head.html">
    <body>
    <table class="mc">
        <tr>
            <td class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "../left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </td>
            <td class="mc-m">
                <div class="navToggle"></div>
            </td>
            <td class="mc-r">
                <!--顶部导航---{-->
                <#include "../../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="批量上传积分excel列表">
                        <#include "../banner.html">
                            <!--面包屑导航---}-->

                            <!--工具栏--{-->
                            <div id="toolbar" class="clearfix">
                                <div class="toolbor-module export">
                                    <a href="uploadCredit.html" class="input-button" style="line-height:24px;">+新增excel</a>
                                </div>
                                <div class="toolbor-module search">   
                                    <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                                 </div>
                                <div class="toolbor-module search">
                                	<div style="height:22px;line-height:22px;float:left;">上传者：</div>
                                    <input type="text" name="username" id="username" value="请输入用户名" data-value="请输入用户名" class="search-value">
                                </div>    
                                    <div class="toolbor-module search">
	                                    <div style="height:22px;line-height:22px;float:left;">上传时间：</div>
	                                    <input class="_search-value js-datetime" name="dotime1" id="dotime1" value="${dotime1!}"/>
	                                    <div style="height:22px;line-height:22px;float:left;margin:0 8px;"> 到 </div>
	                                    <input class="_search-value js-datetime" name="dotime2" value="${dotime2!}" id="dotime2"/>
	                                </div>
                                <div class="toolbor-module search">    
                                    <div style="height:22px;line-height:22px;float:left;">审核人：</div>
                                    <input type="text" name="verify_user" id="verify_user" value="请输入用户名" data-value="请输入用户名" class="search-value">
                                </div>
                                <div class="toolbor-module search">    
                                    <div style="height:22px;line-height:22px;float:left;">状态：</div>
                                    <div class="select-box" id="status">
                                        <div class="tag-select">全部</div>
                                        <ul class="tag-options">
											<li data-value="" class="open-selected">全部</li>
                                            <li data-value="0" <#if status??&&status=="0">data-selected="selected"</#if>>未审核</li>
                                            <li data-value="1" <#if status??&&status=="1">data-selected="selected"</#if>>审核成功</li>
                                            <li data-value="2" <#if status??&&status=="2">data-selected="selected"</#if>>审核失败</li>
                                        </ul>
                                    </div>
                                 </div>
                                    
                                </div>
                            </div>
                            <!--工具栏--}-->

                            <div id="main" class="clearfix">
                                <form action="" method="post">
                                    <table class="data-list">
                                        <tr class="header">
                                            <td>ID</td>
                                            <td>文件名</td>
                                            <td>文件路径</td>
                                            <td>文件备注</td>
                                            <td>上传者</td>
                                            <td>上传时间</td>
                                            <td>审核者</td>
                                            <td>审核时间</td>
                                            <td>状态</td>
                                            <td>类型</td>
                                            <td>操作</td>
                                        </tr>
                                        <#list list as item>
                                            <tr class="s">
                                                <td>${(item.id!0)?c}</td>
                                                <!-- v1.6.6.1 RDPROJECT-10 zza 2013-10-14 start -->
                                                <td>${item.file_name!}</td>
                                                <td>${item.file_path!}</td>
                                                <!-- v1.6.6.1 RDPROJECT-10 zza 2013-10-14 end -->
                                                <td>${item.file_remark!}</td>
                                                <td>${item.username!}</td>
                                                <td>${dateformat(item.addtime!"")}</td>
                                                <td>${item.verify_user!"-"}</td>
                                                <td>${dateformat(item.verify_time!"")}</td>
                                                <td><#if item.status==1>审核成功<#elseif item.status==0>未审核<#else>审核失败</#if></td>
                                                <td><#if item.type=='50'>积分批量上传</#if></td>
                                                <td><a href="saveCreditUpfiles.html?id=${item.id?c}"><#if item.status==0>修改<#else>查看</#if></a>
                                                <#if item.status==0>
                                                <a href="viewCreditUpfiles.html?id=${item.id?c}">审核</a>
                                                <a class="un" href="javascript:;" onClick="javascript:if(confirm('确定要删除吗?删除后将不可恢复')) location.href='delCreditUpfiles.html?id=${item.id!0}'">删除</a></td>
                                                </#if>
                                                </td>
                                            </tr>
                                        </#list>
                                    </table>
                                </form>

                                <!--底部工具栏--{-->
                                <div id="bottomToolbar" class="clearfix">
                                    <div class="other-tool">
                                        <dl class="refresh-data">
                                            <dt class="refresh-data-icon"></dt>
                                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                        </dl>
                                    </div>

                                    <!--翻页系统--{-->
                                    <div class="container">
                                        <#import "../../../common/page.html" as pager>
                                            <@pager.pagination page=page url=currentUrl map=param style="style1" />
                                    </div>
                                    <!--翻页系统--}-->
                                </div>
                                <!--底部工具栏--}-->

                                <script>
                                    var url = 'showCreditUpfiles.html?search=true';
                                    var xlsurl='showCreditUpfiles.html?type=export'

                                    function sousuo(){
                                        var sou = "";
                                        var username = $("#username").val();
                                        if (username!=null&&username!=""&&username!="undefine"&&username!="请输入用户名"){
                                            sou += "&username="+username;
                                        }
                                        var verify_user = $("#verify_user").val();
                                        if (verify_user!=null&&verify_user!=""&&verify_user!="undefine"&&verify_user!="请输入用户名"){
                                            sou += "&verify_user="+verify_user;
                                        }
                                        var status =$("#status").find(".open-selected").attr("data-value");
                                        if (status!="" && status!=null){
                                            sou += "&status="+status;
                                        }
                                        var dotime1 = $("#dotime1").val();
                                        var dotime2 = $("#dotime2").val();
                                        var type = $("#type").val();
                                        if (dotime1!=null){
                                            sou += "&dotime1="+dotime1;
                                        }
                                        if (dotime2!=null){
                                            sou += "&dotime2="+dotime2;
                                        }
                                        if (sou!=""){
                                            location.href=url+sou;
                                        }
                                    }
                                    function exportxls(){
                                        var sou = "";
                                        var username = $("#username").val();
                                        if (username!=null&&username!=""&&username!="undefine"&&username!="请输入用户名"){
                                            sou += "&username="+username;
                                        }
                                        var verify_user = $("#verify_user").val();
                                        if (verify_user!=null&&verify_user!=""&&verify_user!="undefine"&&verify_user!="请输入用户名"){
                                            sou += "&verify_user="+verify_user;
                                        }
                                        var status =$("#status").find(".open-selected").attr("data-value");
                                        if (status!="" && status!=null){
                                            sou += "&status="+status;
                                        }
                                        var dotime1 = $("#dotime1").val();
                                        var dotime2 = $("#dotime2").val();
                                        var type = $("#type").val();
                                        if (dotime1!=null){
                                            sou += "&dotime1="+dotime1;
                                        }
                                        if (dotime2!=null){
                                            sou += "&dotime2="+dotime2;
                                        }
                                        if (sou!=""){
                                            location.href=xlsurl+sou;
                                        }else{
                                            location.href=xlsurl;
                                        }
                                    }
                                </script>
                            </div>

            </td>
        </tr>
        <tr>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../../foot.html"></td>
            <!--尾部--}-->
        </tr>
    </table>

    </body>
</html>
<#include "../../jsPage.html">